package com.happy.stream.message;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @Author:lfeng
 * @Description:消息通道绑定接口
 * @Date：创建于 2018/12/9 18:59
 */
public interface StreamClient {

    String INPUT = "myInput";
    String OUTPUT = "myOutput";

    @Input(StreamClient.INPUT)
    SubscribableChannel  input();

    @Output(StreamClient.OUTPUT)
    MessageChannel output();
}
